<?
// *************************************
// * resources.php allows the admin to
// * View and Delete resources and view
// * resource stats.
// *************************************
$toolbox = 1;
$sajax   = 1;
$richtext = 1;
define('SITE_AREA', 'files');

$jsFile = "jsFiles.js";
include("includes/functions.php");
include($pre."includes/sajax/sajaxFiles.php");

sajax_init();
$sajax_request_type = "POST"; 
sajax_export("getFiles");
sajax_export("getCategories");
sajax_export("deleteFile");
sajax_export("getFileForEdit");
sajax_export("saveFile");
sajax_export("getFilesFromDir");
sajax_export("swapApproved");
sajax_export("search");
sajax_export("refreshFiles");
sajax_handle_client_request();

include("includes/header.php"); ?>
	<script language="javascript" type="text/javascript" src="<?=$pre; ?>js/tinyeditor/config/mceConfig.js"></script>
	<div id="addEditFormDiv" style="display: none;"></div>	
	
	<div id="content0">
		<div id="statusDiv"></div>
		<div id="fileList" style="width: 98%;"></div>
	</div>
	
	<div id="content1">
		<div id="resourceSearchList"></div>
	</div>	
	<div id="south" class="x-layout-inactive-content">
	south - generally for informational stuff, also could be for status bar
	</div>
<? include("includes/footer.php"); ?>